<script setup lang="ts">
const emits = defineEmits(["ok", "cancel"]);
</script>

<template>
  <Dailog>
    <div class="w-full"><slot>对话框信息</slot></div>
    <div class="flex justify-end items-center gap-x-3 w-full text-sm">
      <button
        class="px-2 py-0.5 bg-gray-200 rounded border border-gray-300 hover:bg-gray-100"
        @click="emits('cancel')"
      >
        取消
      </button>
      <button
        class="px-2 py-0.5 bg-blue-500 text-white rounded border border-blue-600 hover:bg-blue-600"
        @click="emits('ok')"
      >
        确定
      </button>
    </div>
  </Dailog>
</template>
